# import  re
# s = '{"token":"8ac00e05a7652b31598a56d764bd5b5f7c45a6ef","id":"!dsadsa213hu32i1h3ui21","repo_id":"jdsioadjiojdsaoi"}'
# result=re.search('{"token":"(.*?)","id":"(.*?)","repo_id":"(.*?)"}',s)
# print(f'提取到tounk:{result.group(1)}')
# print(f'提取到id:{result.group(2)}')
# print(f'提取到repo_id:{result.group(3)}')

from comms.seafile_func import login, seafile_user_info
from comms.tools import get_str_by_re

login()
print('*'*100)
# login('','admin')
# print('*'*100)
# login('seafile@admin.com','')
resp=login()
str1=resp.text
token=get_str_by_re(':"','"',str1)

print('*'*100)
# token=eval(resp.text)['token']
seafile_user_info(token)